<?php
	$css = '';
	if (isset($validate)) { $css .= $validate; }
?>
<label for="<?php echo $id; ?>"><?php echo $label; ?></label>
<input type="<?php echo $type; ?>" name="<?php echo $id; ?>" id="<?php echo $id; ?>" class="<?php echo $css; ?>" title="<?php echo $valmsg; ?>" />
<span class="errast">*</span>
<div class="errmsg"></div>
<div class="lb"></div>